package com.shenyi.mould.rest.controller.base;

import com.shenyi.common.entity.SysUserDO;
import com.shenyi.common.utils.ShiroUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Auther: fxl
 * @Date: 2018/10/23 22:55
 * @Description:
 */
public abstract class AbstractController {

    protected Logger logger = LoggerFactory.getLogger(getClass());

    protected SysUserDO getUser() {
        return ShiroUtils.getUserDO();
    }

    protected Long getUserId() {
        return getUser().getUserId();
    }

    protected Long getDeptId() {
        return getUser().getDeptId();
    }

}
